﻿namespace Yipusoft.Account.BLL
{
    using System;
    using System.Collections.Generic;
    using Yipusoft.Account.DAL;
    using Yipusoft.Account.Model;

    public class PermissionCategory
    {
        public static bool Delete(string CategoryID)
        {
            Yipusoft.Account.DAL.PermissionCategory category = new Yipusoft.Account.DAL.PermissionCategory();
            return category.Delete(CategoryID);
        }

        public static bool Exsits(string CategoryID)
        {
            Yipusoft.Account.DAL.PermissionCategory category = new Yipusoft.Account.DAL.PermissionCategory();
            return category.Exsits(CategoryID);
        }

        public static List<PermissionCategoryInfo> GetList(string StrWhere)
        {
            Yipusoft.Account.DAL.PermissionCategory category = new Yipusoft.Account.DAL.PermissionCategory();
            return category.GetList(StrWhere);
        }

        public static PermissionCategoryInfo GetPermissionCategory(string CategoryID)
        {
            Yipusoft.Account.DAL.PermissionCategory category = new Yipusoft.Account.DAL.PermissionCategory();
            return category.GetPermissionCategory(CategoryID);
        }

        public static bool Insert(PermissionCategoryInfo PermissionCategory)
        {
            Yipusoft.Account.DAL.PermissionCategory category = new Yipusoft.Account.DAL.PermissionCategory();
            return category.Insert(PermissionCategory);
        }

        public static bool Update(PermissionCategoryInfo PermissionCategory)
        {
            Yipusoft.Account.DAL.PermissionCategory category = new Yipusoft.Account.DAL.PermissionCategory();
            return category.Update(PermissionCategory);
        }
    }
}

